//
//  ThreadsViewController.h
//  ViewPoint
//
//  Created by Demiao Lin on 10/20/08.
//  Copyright 2008 Tsinghua. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PostViewController;
@class ThreadViewController;

@class Board;

@interface ThreadsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource>{
	NSMutableArray *threads;
	PostViewController *postViewController;
	ThreadViewController *threadViewController;
	Board *board;
	NSInteger page_num;
    UITableView *tableView;
    
	CFAbsoluteTime lastUpdateTime;
	
    //UIActivityIndicatorView *spinner;
    //UILabel *loadingLabel;
}

@property(nonatomic,retain) NSMutableArray *threads;
@property(nonatomic,retain) PostViewController *postViewController;
@property(nonatomic,retain) ThreadViewController *threadViewController;
@property(nonatomic,retain) Board *board;
@property(nonatomic) NSInteger page_num;
@property(nonatomic, retain) UITableView *tableView;

- (id) initWithTitle: (NSString *) title;

- (void) setTitle:(NSString *) title 
			board:(Board *) b;

-(void) loadTableView;
-(void) loadTableViewData:(id)object;

- (void) setViewsRotation;
- (void)loadToolbar;

-(void) loadPreviousPage:(id)sender;
-(void) loadNextPage:(id)sender;

//- (void)showLoadingIndicators;
//- (void)hideLoadingIndicators;


@end
